import type { ProfileResult, UpDataProfileParams, UpDateProfileResult } from '@/types/member'
import { http } from '@/utils/http'
export const useProfileApi = () => {
    return {
        getProfile: () => {
            return http<ProfileResult>({
                method:'GET',
                url:'/member/profile'
            })
        },
        updateProfile: (data:UpDataProfileParams) => {
            return http<UpDateProfileResult>({
                method:'PUT',
                url:'/member/profile',
                data
            })
        }
    }
} 